//
//  SecondTableViewCell.m
//  Cook
//
//  Created by 0.0 on 15-4-16.
//  Copyright (c) 2015年 dingjun. All rights reserved.
//

#import "SecondTableViewCell.h"

@implementation SecondTableViewCell

- (void)dealloc
{
    [_secondImageView release];
    [_secondLabel release];
    
    [super dealloc];
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.secondImageView = [[UIImageView alloc] initWithFrame:CGRectMake(self.frame.origin.x, self.frame.origin.y, 50, 50)];
//        self.secondImageView.backgroundColor = [UIColor greenColor];
        self.secondLabel = [[UILabel alloc] initWithFrame:CGRectMake(_secondImageView.frame.origin.x + _secondImageView.frame.size.width + 10, _secondImageView.frame.origin.y, self.frame.size.width, _secondImageView.frame.size.height)];
        
        [self.contentView addSubview:_secondImageView];
        [self.contentView addSubview:_secondLabel];
        
        [_secondImageView release];
        [_secondLabel release];
        
    }
    
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
